/*
 * @Author: guandeshen 295570679@qq.com
 * @Date: 2024-05-24 15:37:37
 * @LastEditors: guandeshen 295570679@qq.com
 * @LastEditTime: 2024-05-24 16:17:11
 * @FilePath: /go-view/src/api/mock/sys/login.ts
 * @Description: 
 * 
 * Copyright (c) 2024 by ${git_name_email}, All Rights Reserved. 
 */
import { MockMethod } from 'vite-plugin-mock'
export default [
  {
    url: '/sys/login', // 模拟的 API 路径
    method: 'post',
    response: () => {
      // 根据请求参数返回 Mock 数据
      return {
        "msg": "操作成功",
        "code": 200,
        "data": {
            "userinfo": {
                "id": "1",
                "username": "admin",
                "password": "21232f297a57a5a743894a0e4a801fc3",
                "nickname": "管理员",
                "depId": null,
                "posId": null,
                "depName": null,
                "posName": null
            },
            "token": {
                "tokenName": "satoken",
                "tokenValue": "0511f9bb-0602-43b2-96b8-c22647f82176",
                "isLogin": true,
                "loginId": "1",
                "loginType": "login",
                "tokenTimeout": 2591621,
                "sessionTimeout": 2591621,
                "tokenSessionTimeout": 2589994,
                "tokenActivityTimeout": -1,
                "loginDevice": "default-device",
                "tag": null
            }
        }
    };
    },
  },
] as MockMethod[];
